#ifndef CBOUNDINGSPHERE_H
#define CBOUNDINGSPHERE_H

#include "cboundingvolume.h"

class CBoundingSphere : public CBoundingVolume
{
public:
    CBoundingSphere(void* pObject, CPoint3f Center, double fRadius);
    ~CBoundingSphere();

    bool intersect(CRay* pRay);
    bool intersect(CBoundingSphere* pSphere);

    std::string className();
    void getBoundingBox(CPoint3f& Pmin, CPoint3f& Pmax);

    CPoint3f    m_Position;
    double      m_fRadius;
};

#endif // CBOUNDINGSPHERE_H
